﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DRHotel_v1.Classes;
using DRHotel_v1.Classes.DBManagers;

namespace DRHotel_v1.HousekeepingAndStaffMngmt
{
    public partial class CustomerModificationLog : Form
    {
        public CustomerModificationLog()
        {
            InitializeComponent();

            ArrayList changeLog = HousekeepingDBManager.GetChangeLog();

            int counter = 0;
            foreach (CustomerModification cm in changeLog)
            {
                this.dgvResult.Rows.Add(new DataGridViewRowCollection(this.dgvResult));
                this.dgvResult.Rows[counter].SetValues(cm.cusIC, cm.staffID, cm.dateTime);
                counter++;
            }
        }
    }
}
